package com.mce.nebula.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 登录响应DTO
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class LoginResponse {
    
    private String token;
    private String type = "GRJWT";
    private Long userId;
    private String username;
    private String email;
    private String realName;
    private String enterpriseId;
    private Boolean sysAdmin;
    
    public LoginResponse(String token, Long userId, String username, String email, 
                        String realName, String enterpriseId, Boolean sysAdmin) {
        this.token = token;
        this.userId = userId;
        this.username = username;
        this.email = email;
        this.realName = realName;
        this.enterpriseId = enterpriseId;
        this.sysAdmin = sysAdmin;
    }
}





